package com.aiiter.house.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.aiiter.common.annotation.Excel;
import com.aiiter.common.core.domain.BaseEntity;

/**
 * 存储房产的基本信息，包括房主信息对象 house_property
 * 
 * @author yaocheng
 * @date 2024-08-13
 */
public class HouseProperty extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 房产ID */
    private Long propertyId;

    /** 房主名称 */
    @Excel(name = "房主名称")
    private String ownerName;

    /** 身份证号 */
    @Excel(name = "身份证号")
    private String idNumber;

    /** 电话号码 */
    @Excel(name = "电话号码")
    private String phoneNumber;

    /** 房主认证状态 */
    @Excel(name = "房主认证状态")
    private String ownerStatus;

    /** 认证时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "认证时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date certificationDate;

    /** 房产名称 */
    @Excel(name = "房产名称")
    private String propertyName;

    /** 房产类型 */
    @Excel(name = "房产类型")
    private String propertyType;

    /** 房产地址 */
    @Excel(name = "房产地址")
    private String propertyAddress;

    /** 创建时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "创建时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date createdAt;

    public void setPropertyId(Long propertyId)
    {
        this.propertyId = propertyId;
    }

    public Long getPropertyId()
    {
        return propertyId;
    }
    public void setOwnerName(String ownerName) 
    {
        this.ownerName = ownerName;
    }

    public String getOwnerName() 
    {
        return ownerName;
    }
    public void setIdNumber(String idNumber) 
    {
        this.idNumber = idNumber;
    }

    public String getIdNumber() 
    {
        return idNumber;
    }
    public void setPhoneNumber(String phoneNumber) 
    {
        this.phoneNumber = phoneNumber;
    }

    public String getPhoneNumber() 
    {
        return phoneNumber;
    }
    public void setOwnerStatus(String ownerStatus) 
    {
        this.ownerStatus = ownerStatus;
    }

    public String getOwnerStatus() 
    {
        return ownerStatus;
    }
    public void setCertificationDate(Date certificationDate) 
    {
        this.certificationDate = certificationDate;
    }

    public Date getCertificationDate() 
    {
        return certificationDate;
    }
    public void setPropertyName(String propertyName) 
    {
        this.propertyName = propertyName;
    }

    public String getPropertyName() 
    {
        return propertyName;
    }
    public void setPropertyType(String propertyType) 
    {
        this.propertyType = propertyType;
    }

    public String getPropertyType() 
    {
        return propertyType;
    }
    public void setPropertyAddress(String propertyAddress) 
    {
        this.propertyAddress = propertyAddress;
    }

    public String getPropertyAddress() 
    {
        return propertyAddress;
    }
    public void setCreatedAt(Date createdAt) 
    {
        this.createdAt = createdAt;
    }

    public Date getCreatedAt() 
    {
        return createdAt;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("propertyId", getPropertyId())
            .append("ownerName", getOwnerName())
            .append("idNumber", getIdNumber())
            .append("phoneNumber", getPhoneNumber())
            .append("ownerStatus", getOwnerStatus())
            .append("certificationDate", getCertificationDate())
            .append("propertyName", getPropertyName())
            .append("propertyType", getPropertyType())
            .append("propertyAddress", getPropertyAddress())
            .append("createdAt", getCreatedAt())
            .toString();
    }
}
